package com.ruoyi.project.oms.paeaRiskItemDetail.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.oms.paeaRiskItemDetail.mapper.PaeaRiskItemDetailMapper;
import com.ruoyi.project.oms.paeaRiskItemDetail.domain.PaeaRiskItemDetail;
import com.ruoyi.project.oms.paeaRiskItemDetail.service.IPaeaRiskItemDetailService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 预警详情Service业务层处理
 *
 * @author ruoyi
 * @date 2020-04-04
 */
@Service
public class PaeaRiskItemDetailServiceImpl extends ServiceImpl<PaeaRiskItemDetailMapper, PaeaRiskItemDetail> implements IPaeaRiskItemDetailService
{
    @Autowired
    private PaeaRiskItemDetailMapper paeaRiskItemDetailMapper;

    /**
     * 查询预警详情
     *
     * @param id 预警详情ID
     * @return 预警详情
     */
    @Override
    public PaeaRiskItemDetail selectPaeaRiskItemDetailById(String id)
    {
        return paeaRiskItemDetailMapper.selectPaeaRiskItemDetailById(id);
    }

    /**
     * 查询预警详情列表
     *
     * @param paeaRiskItemDetail 预警详情
     * @return 预警详情
     */
    @Override
    public List<PaeaRiskItemDetail> selectPaeaRiskItemDetailList(PaeaRiskItemDetail paeaRiskItemDetail)
    {
        return paeaRiskItemDetailMapper.selectPaeaRiskItemDetailList(paeaRiskItemDetail);
    }

    /**
     * 新增预警详情
     *
     * @param paeaRiskItemDetail 预警详情
     * @return 结果
     */
    @Override
    public int insertPaeaRiskItemDetail(PaeaRiskItemDetail paeaRiskItemDetail)
    {
        return paeaRiskItemDetailMapper.insertPaeaRiskItemDetail(paeaRiskItemDetail);
    }

    /**
     * 修改预警详情
     *
     * @param paeaRiskItemDetail 预警详情
     * @return 结果
     */
    @Override
    public int updatePaeaRiskItemDetail(PaeaRiskItemDetail paeaRiskItemDetail)
    {
        return paeaRiskItemDetailMapper.updatePaeaRiskItemDetail(paeaRiskItemDetail);
    }

    /**
     * 删除预警详情对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaRiskItemDetailByIds(String ids)
    {
        return paeaRiskItemDetailMapper.deletePaeaRiskItemDetailByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除预警详情信息
     *
     * @param id 预警详情ID
     * @return 结果
     */
    @Override
    public int deletePaeaRiskItemDetailById(String id)
    {
        return paeaRiskItemDetailMapper.deletePaeaRiskItemDetailById(id);
    }
}
